import request from '@/api/request'

//数据列表
export function index(params) {
	return request({ url: '/app/Receive/index',method: 'post',data: params})
}



//修改排序开关
export function updateExt(params) {
	return request({ url: '/app/Receive/updateExt',method: 'post',data: params})
}



//添加
export function add(params) {
	return request({ url: '/app/Receive/add',method: 'post',data: params})
}



//修改
export function update(params) {
	return request({ url: '/app/Receive/update',method: 'post',data: params})
}

export function getUpdateInfo(params) {
	return request({ url: '/app/Receive/getUpdateInfo',method: 'post',data: params})
}



//删除
export function del(params) {
	return request({ url: '/app/Receive/delete',method: 'post',data: params})
}


//
// //查看详情
// export function detail(params) {
// 	return request({ url: '/app/Receive/receivedetail',method: 'post',data: params})
// }

export function detail(params){
	return request({ url: '/app/Receive/receivedetail',method: 'post',data: params})
}


//生成来料检验单
export function saveInspect(params){
	return request({ url: '/app/Inspect/save_inspect',method: 'post',data: params})
}



//获取仓库集合
export function getStockList(params){
	return request({ url: '/app/Receive/get_stock_list',method: 'post',data: params})
}
